cssshadowsvalue: handle gtk_css_value_transition returning NULL
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 16 Oct 2012 18:22:24 +0000 (14:22 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 16 Oct 2012 18:22:24 +0000 (14:22 -0400)
commita021b72c717b41a03e21487e97dfa37a57222894
treeb9598aca87c31e0674cd19523aab342618409d34
parent6b3416a2d748d8cdede075bea259fe609aeadc5b
cssshadowsvalue: handle gtk_css_value_transition returning NULL

The implementation of transition for GtkCssShadowValue can return NULL
at least when the two values have a different inset; all other parts of
the GTK/CSS machinery (e.g. GtkCssArrayValue) handle this by returning
NULL too. Instead, GtkCssShadowsValue was returning an invalid value,
where "len" was set, but some values in the array were NULL, which would
lead to a segfault when this value is later evaluated by the compute
function.

Fix this by making GtkCssShadowsValue return NULL if a shadow transition
fails, like GtkCssArrayValue does.

https://bugzilla.gnome.org/show_bug.cgi?id=686013
gtk/gtkcssshadowsvalue.c